package io.fredia.femicro.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.spring4all.swagger.EnableSwagger2Doc;

import io.fredia.femicro.auth.client.EnableFeAuthClient;
import io.fredia.femicro.cache.EnableFeCache;

@EnableEurekaClient
@EnableCircuitBreaker
@SpringBootApplication
@EnableFeignClients({ "io.fredia.femicro.auth.client.feign" })
@EnableScheduling
@EnableFeAuthClient
@EnableFeCache
@EnableTransactionManagement
@MapperScan("io.fredia.femicro.admin.mapper")
@EnableSwagger2Doc
public class AdminBootstrap {
	public static void main(String[] args) {
		new SpringApplicationBuilder(AdminBootstrap.class).web(true).run(args);
	}
}
